/*
* $Id: Validate.h 2 2009-12-23 13:58:02Z volok-aleksej@yandex.ru $
*
* Copyright 2008 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _VALIDATE_H_
#define _VALIDATE_H_

#include "InterfaceDC.h"

class CSimbolsValidate : public IValidate
{
	std::tstring m_strRule;
public:
	CSimbolsValidate(const std::tstring& strRule);

	virtual bool bValidate(const std::tstring& strContent, bool bWay = true);
	virtual std::tstring GetValidateRule();
	virtual void Free();
};

class CValueValidate : public IValidate
{
	std::tstring m_strRule;
public:
	CValueValidate(const std::tstring& strRule);

	virtual bool bValidate(const std::tstring& strContent, bool bWay = true);
	virtual std::tstring GetValidateRule();
	virtual void Free();
};

#endif /*_VALIDATE_H_*/